package joodle.ui;

import static joodle.si.ResourceManager.message;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import joodle.ui.JoodleFrame.JoodlePanel;

@SuppressWarnings("serial")
public class StatusbarAction extends AbstractAction {

	JoodlePanel jdPanel;

	public StatusbarAction(JoodlePanel jdPanel) {
		super(message("StatusBar"));
		this.jdPanel = jdPanel;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		jdPanel.toggleStatusBarVisibility();
		jdPanel.revalidate();
		jdPanel.repaint();
	}

}
